package org.gd.hellojavacore.isd;

/**
 5. How many String objects are created in the following code?

 String A, B, C ;
 A = new String( "1234" ) ;
 B = A ;
 C = A + B ;

 1. One
 2. Two
 3. Three
 4. Four

 */
public class Test5 {

    public static void main(String...a) {
        String A, B, C ;
        A = new String( "1234" ) ;
        B = A ;
        C = A + B ;

        System.out.println(A.hashCode());
        System.out.println(B.hashCode());
        System.out.println(C.hashCode());
    }
}
